<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/public/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>资质管理</title>
<%
	request.setAttribute("menu", 1);
%>
<%@ include file="/WEB-INF/page/public/contentmeta.jsp"%>
<link rel="stylesheet" href="<%=basePath%>css/global.css" media="all" />
<link rel="stylesheet" href="<%=basePath%>plugins/font-awesome/css/font-awesome.min.css" media="all">
<link rel="stylesheet" href="<%=basePath%>css/system.css" media="all">
<link rel="stylesheet" href="<%=basePath%>css/tab.css" media="all" />
<style type="text/css">
.layui-form-label i {
	color: red;
	padding-right: 3px;
}
.htlayui-disabled, .htlayui-disabled:hover {
    color: black;
    background-color:#e4e4e4;
    cursor: not-allowed;
}
</style>

</head>
<body>

	<input type="hidden" id="successlog" value="${successlog}">
	<input type="hidden" value="${customertype}" id="customertype">

  
				<div class="admin-tab admin-user">
					<div class="tab-condition">

     <form class="layui-form clefix customersearcheform" action="/customer/myqualificationlist" method="post" id="customerlistform">
    		<div class="layui-form-item">
				<div class="layui-input-block">
					<input type="text" name="keyWord" id="keyWord" lay-verify="title" autocomplete="off" placeholder="输入关键词后搜索" class="layui-input" value="${pager.params.KeyWord}" >
				</div>
			</div>
		<div class="layui-form-item">
			<input name="skipToPage" id="skipToPage"  type="hidden" value="${pager.pageNo}">
			<input type="hidden" id="pageNo" name="pageNo" value="${pager.pageNo}">
			<input type="hidden" id="totalPage" name="totalPage" value="${pager.totalPages}">
			<input type="hidden" value="${customertype}" id="customertype" name="type">
			<input type="hidden" value="${customerstate}" id="customerstate" name="state">
			<c:if test="${customerstate != 4}">
				<button class="layui-btn customersearchbtn" lay-submit="" lay-filter="searchform"><i class="layui-icon layui-unselect layui-tab-close">&#xe615;<!-- &#xe642; --></i>搜索资源</button>
				<button class="layui-btn searchbtnclean" type="button" lay-submit="" lay-filter="searchform">清空搜索</button>
			</c:if>
		</div>
	</form>
					</div>
					<div class="layui-field-box">
						<table class="site-table table-hover TM-table-news">
							<thead>
								<tr>
									<th style="width: 8%;">资质跟进人</th>
									<th style="width: 25%;">企业名称</th>
									<th style="width: 25%;">企业资质</th>
									<th>联系电话</th>
									<th style="width: 8%;">所在地区</th>
									<th style="width: 10%;">操作</th>
								</tr> 
							</thead>
							<tbody>
								<c:set var="vEnter" value="\n" scope="request" />
								<%
									request.setAttribute("vEnter", "\n");
								%>
								<c:forEach var="obj" items="${pager.resultList}" varStatus="o1">
									<tr  >
										<td>  ${obj.createusersname==null?"暂无":obj.createusersname}</td>
										<td>${obj.cname}</td>
										<td class="TM_hover seecategory seecategory${obj.id}" >
										     <c:if
												test="${fn:length(obj.zzleval)<1}">
											暂无资质情况
										</c:if> <c:if test="${fn:length(obj.zzleval)>1}">
											${obj.zzleval}
											</c:if>
										</td>
										<td>
											<c:set property="mainuser" value="0" var="mainuser"></c:set>
											<c:if test="${fn:length(obj.contactsItem)> 0}">
												<c:forEach items="${obj.contactsItem}" var="csObj">
													<c:if test="${csObj.ismain==1}">${csObj.phone}<i class="iconfont  icon-im_dianhua1"  style="margin-left:5px;font-size: 20px; color: #1E9FFF;cursor:pointer;"  data="${csObj.phone}"   dataid="${obj.id}"></i><c:set
															property="mainuser" value="1" var="mainuser"></c:set>
													</c:if>
												</c:forEach>
												<c:if test="${mainuser==0}">${obj.contactsItem.get(0).phone}<i class="iconfont  icon-im_dianhua1"  style="margin-left:5px;font-size: 20px; color: #1E9FFF;cursor:pointer;"  data="${obj.contactsItem.get(0).phone}"  dataid="${obj.id}"></i></c:if>
											</c:if>
										</td>
										<td><dic:str value="${obj.address}" maxLength="6" /></td>
										<td data="${obj.id}">
													<button type="button"
													class="layui-btn layui-btn-normal layui-btn-mini gjjlbtn"
													data="${obj.id}"   cdata="${obj.contractid}"  owner="<c:if test="${sessionScope.user.id  == obj.createuser}">1</c:if>" dname="${obj.cname}" >跟进</button> 
													<button type="button"
														class="layui-btn layui-btn-normal layui-btn-mini zzrybtn"
														data="${obj.id}"   cdata="${obj.contractid}"   dname="${obj.cname}" owner="<c:if test="${sessionScope.user.id  == obj.createuser}">1</c:if>"  >人员</button> 	
													<button type="button"
													class="layui-btn layui-btn-normal layui-btn-mini htbtn"
													data="${obj.id}"  cdata="${obj.contractid}"  dname="${obj.cname}" >查看合同</button> 	
														 		
															  
										</td>  
									</tr>
								</c:forEach>
							</tbody>
						</table>
				 
						<div class="admin-table-page">
							<div class="page">
								<div class="layui-laypage">
									<span class="layui-laypage-total"><button type="button"
											class="layui-laypage-btn">共${pager.totalSize}条记录</button></span>
								</div>
							</div>
						</div>
						<div class="admin-table-page">
							<div id="page" class="page"></div>
						</div>

					</div>
				</div>
  
 
	<script type="text/javascript" src="<%=basePath%>js/customerqualist.js?v=<%=callcenterstate%>17"></script>
	<script type="text/javascript">
		
	</script>
</body>
</html>